package com.haoze.nurseapp.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.model.EmrFileIndexEntity;
import com.haoze.nurseapp.model.TaskExecuteDetailEntity;
import com.haoze.repository.model.EmrTemplateDetailEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmrFileIndexMapper extends MyMapper<EmrFileIndexEntity> {
    /**
     * 新增穿刺
     * @param barCode
     * @param nodeId
     * @return
     */
    TaskExecuteDetailEntity queryInfoByBarCode(@Param("barCode") String barCode,@Param("nodeId") String nodeId);

    List<Map<String,String>> getTplDetailListByVarCode(@Param("nodeId")String nodeId,@Param("varCode") String varCode);

    List<Map<String,String>> getTplDetailListByNodeId(@Param("nodeId")String nodeId);

    int getFileSort(@Param("emrFileId") String emrFileId);
}
